﻿<Controls:MetroWindow x:Class="Shoozla.View.OptionsView"
       xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:Controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
        xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
        xmlns:behaviours="clr-namespace:MahApps.Metro.Behaviours;assembly=MahApps.Metro" 
        xmlns:s="clr-namespace:Shoozla"
        xmlns:sv="clr-namespace:Shoozla.View"
        xmlns:svm="clr-namespace:Shoozla.ViewModel"
        Title="Options" Height="210" Width="385" ShowWindowCommands="False"  ShowInTaskbar="False" ResizeMode="NoResize" WindowStartupLocation="CenterOwner" ShowIconOnTitleBar="False" ShowTitleBar="False" WindowStyle="None">
    <i:Interaction.Behaviors>
        <behaviours:BorderlessWindowBehavior ResizeWithGrip="False" AutoSizeToContent="False" />
    </i:Interaction.Behaviors>
    <TabControl>
        <TabItem Header="Search" Name="albumTI">
            <Grid Margin="10,0,0,0">
                <Grid.RowDefinitions>
                    <RowDefinition Height="30"/>
                    <RowDefinition Height="30"/>
                    <RowDefinition Height="*"/>
                    <RowDefinition Height="30"/>
                </Grid.RowDefinitions>

                <!--<Label Content="{Binding SummaryDescription}" Grid.Row="1" Height="28" Margin="10,0,0,0"  HorizontalAlignment="Left"  Name="summaryLB" VerticalAlignment="Top" />-->

                <StackPanel Grid.Row="0" Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Top">
                    <Label Content="Website:" Height="30" HorizontalAlignment="Left"  VerticalAlignment="Center" />

                    <ComboBox Height="30" HorizontalAlignment="Center" SelectionChanged="addInCB_SelectionChanged" Name="addInCB" ItemsSource="{Binding AddIns}" SelectedValue="{Binding SelectedCoverPlugIn}" VerticalAlignment="Center" Width="280">
                        <ComboBox.ItemTemplate>
                            <DataTemplate>
                                <StackPanel Orientation="Horizontal">
                                    <Image Height="25" Name="searcherLogoIM" Source="{Binding Icon}" HorizontalAlignment="Left"  Stretch="Uniform" VerticalAlignment="Center" Width="105" Margin="0,0,10,0" />
                                    <TextBlock Text="{Binding AddInName}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="12" FontWeight="Bold" Width="150"></TextBlock>
                                </StackPanel>
                            </DataTemplate>
                        </ComboBox.ItemTemplate>
                    </ComboBox>
                </StackPanel>
                <Label Content="info about the selected addin" Height="30" Grid.Row="1" HorizontalAlignment="Left" Margin="55,0,0,0"  Name="addinDescLB" VerticalAlignment="Top" Width="280" FontStretch="SemiExpanded" FontStyle="Italic" Background="{DynamicResource AccentColorBrush}" ></Label>

                <StackPanel Grid.Row="4" Orientation="Horizontal" HorizontalAlignment="Right"  >
                    <Button Content="Cancel" Height="23" HorizontalAlignment="Left" Command="{Binding Path=CmdCancel}" Name="cancelBT" VerticalAlignment="Top" Width="50"  />
                    <Button Content="Save"  Height="23" HorizontalAlignment="Left" Command="{Binding Path=CmdSave}" Name="saveBT" VerticalAlignment="Top" Width="50" Margin="5,0,5,0"  IsDefault="True" />
                </StackPanel>
            </Grid>
        </TabItem>
    </TabControl>
</Controls:MetroWindow>
